import requests

from com.yh.oa.utils.utils import oa_host


class User():


    def login(username,password):
        user = {
            "username": username,
            "password": password
        }
        loginResp = requests.post(oa_host+"/login/noCode", json=user)
        return loginResp